<div class="sf_admin_container">
  <h2><?php echo __('My Account'); ?></h2>
  <div class="cpanel">
    <ul>
      <li><?php echo link_to(__('Change password'), 'sfCMSfront/change_pass'); ?></li>
      <!--<li><?php //echo link_to(__('My Blog'), 'my_blog/index'); ?></li>-->
      <li><?php echo link_to(__('Admin settings'), 'admin_config/index'); ?></li>
    </ul>
  </div>
  <h2><?php echo __('summary'); ?></h2>
  <div class="cpanel">
    <ul>
    <?php 
    $summery_models = sfConfig::get('app_sfCMSPlugin_summery_models',array());
    foreach ($summery_models as $model =>$calling_paths){
            foreach ($calling_paths as $label =>$path){
                if($label == '_options')continue;
                
                $url = isset($summery_models[$model]['_options']['url']) ? $summery_models[$model]['_options']['url'] : sfInflector::underscore($model)."/index";
                
        ?>
            <li><?php echo link_to(__($model .'-'.$label), $url."?show_new_only=1&calling_path={$path}&model={$model}"); ?><span style="color:red"> <?php echo CMSLogPeer::count( $model , $path ) ?> New</span></li>
          <?php }?>
      <?php }?>
    </ul>
  </div>
</div>